/*
 *  Copyright (C) 2010 Zubanov Dmitry
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


/**
 *
 * @author Zubanov Dmitry aka javadimon, zubanov@gmail.com
 * Omsk, Russia, created 18.09.2010
 * (C) Copyright by Zubanov Dmitry
 */

package org.jssdb.core.net;

import java.io.Serializable;

public class MulticastCommand implements Serializable{

    public static int GET_INFO = 0, GET_FILES_LIST = 1;
    private int cmd = -1;

    public MulticastCommand(){
        //
    }

    public MulticastCommand(int cmd){
        this.cmd = cmd;
    }

    public void setCommand(int cmd){
        this.cmd = cmd;
    }

    public int getCommand(){
        return cmd;
    }

    @Override
    public String toString(){
        return MulticastCommand.class.getName() + ", current cmd value is " + cmd;
    }

}
